<?php
if(!defined('BZ_XTBLOG') || !defined('BZ_WJSCUZ')) {
	exit('Access Denied');
}
$fid =verify_id($_GET['fid']);
$act =$_GET['act'];
$flid =verify_id($_GET['flid']);
$name=$_POST['name'];
$forum=$db->get_one('forum_class'," `id` ='$fid'",'');
$wzxx_title =$forum['name'].'-论坛搜索-'.$wzxx_title.'';
$wzxx_gj    =$forum['value'].'-论坛搜索-'.$wzxx_gj.'';
$wzxx_ms    =$forum['value'].'-论坛搜索-'.$wzxx_ms.'';


   $num_count=$db->num_rows('forum'," `sz_sc` ='0' AND `name` LIKE '%".$name."%' ",'id');
   $list_num ="10";
   $num_start=page_num($list_num,$num_count);
   $sql_bbs  =$db->query('forum'," `sz_sc` ='0' AND `name` LIKE '%".$name."%' ORDER BY `id` DESC LIMIT ".$num_start." , ".$list_num." ",'');
while($row_b=mysql_fetch_array($sql_bbs)){
	     $typeaa='';
		   $jing='';
		   $suo='';
		   $cun='';
		   if($row_b['type']=='1'){
		      $typea='投票';
		      $typeaa='<img src="images/forum/pollsmall.gif" alt="投票"/>';
	     }else if($row_b['type']=='2'){
		      $typea='悬赏';
		      $typeaa='<img src="images/forum/rewardsmall.gif" alt="悬赏"/>';
	     }else if($row_b['type']=='3'){
		      $typea='图片';
		      $typeaa='<img src="images/forum/data_tp.gif" alt="图片"/>';
	     }else if($row_b['type']=='4'){
		      $typea='附件';
		      $typeaa='<img src="images/forum/data_fj.gif" alt="附件"/>';
	     }else if($row_b['type']=='5'){
		      $typea='派币';
		      $typeaa='<img src="images/forum/viewpay.gif" alt="派币"/>';
       }
		   if($row_b['cun']==1){
	   	    $cun='<img src="images/forum/recommend_1.gif" alt="推荐"/>';
       }
		   if($row_b['type_jin']==1){
	   	    $jing='<img src="images/forum/digest_1.gif" alt="精华"/>';
       }
		   if($row_b['type_suo']==1){
		      $suo='<img src="images/forum/locked.gif" alt="锁定"/>';
       }
		   if($row_b['type_lx']==1){
		      $yckl='[<font color="#80FF80">隐</font>]';
		   }
      $tzbbst=$jing.$cxjh.$yckl;
      $num_start=$num_start+1;
      $tsj=Bingz_time($row_b['time_a']);
      if($forum[sz_fl] == '1'){
          $ttfl=$db->get_one('forum_tzfl'," `id` ='$row_b[fid]'",'');
          if($ttfl[name]){
             $tzfl='[<a href="index.php?'.$bzml.'=forum&amp;'.$bzmd.'=list&amp;fid='.$forum[id].'&amp;flid='.$ttfl[id].''.$bzsid.'" title="'.$ltname.'" ><font color="#FF0B0B">'.$ttfl[name].'</font></a>]';
          }else{
	           $tzfl="";
	        }
      }else{
          $tzfl="";
      }
	     $row_b['name']  =Bingz_html($row_b['name']);
       if($row_b[nameys] =='0'){
          $ttname='<font color="#105CB6">'.$row_b['name'].'</font>';
       }else{
          $ttname='<font color="'.$row_b['nameys'].'">'.$row_b['name'].'</font>';
       }
       $hyname=$user_class->user_name($row_b['uid']);
       $hytx  =$user_class->user_tx($row_b['uid']);
       $lttz[]= array('cun' => $cun,'suo' => $suo,'jing' => $jing,'hytx' => $hytx,'tzbst' => $tzbbst,'type' => $typea,'typeaa' => $typeaa,'flname' => $tzfl,'sj' => $tsj,'hyid' => $row_b['uid'],'hyname' => $hyname,'hynamesz' => $row_b['sz_lm'],'lx' => $row_b['id'],'cks' => $row_b['cks'],'hfs' => $row_b['hfs'],'id' => $row_b['id'],'name' => $ttname);
    }
   $page=page_link($list_num,$num_count);
@include template('head');
@include template('forum/forum_sos');
@include template('foot');
?>